package cn.kgc.service;

import cn.kgc.mapper.AirMapper;
import cn.kgc.pojo.Air_Quility_Index;
import cn.kgc.pojo.District;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class AirServiceImpl implements AirService{
    @Autowired
    AirMapper airMapper;
    @Override
    public List<District> selectAllDistrict() {
        return airMapper.getAllDistrict();
    }

    @Override
    public List<Air_Quility_Index> selectAllAir() {
        return airMapper.getAllAir();
    }

    @Override
    public Integer insertAir(Air_Quility_Index air_quility_index) {
        return airMapper.addAir(air_quility_index);
    }
}
